"""
__author__ = 'heyanmin'
__time__ = '2021/6/6 5:26 下午'
"""
import json

import requests


class BaseApi:
    # 多协议支持，或将来协议变更，将协议封装
    def request(self,data:dict):
        r = requests.request(**data)
        json.dumps(r.json(), ensure_ascii=False, indent=2)
        return r


